import request from '@/utils/request'

// 查询球队动态列表
export function listFeeds(query) {
  return request({
    url: '/team/feeds/list',
    method: 'get',
    params: query
  })
}

// 查询球队动态详细
export function getFeeds(id) {
  return request({
    url: '/team/feeds/' + id,
    method: 'get'
  })
}

// 新增球队动态
export function addFeeds(data) {
  return request({
    url: '/team/feeds',
    method: 'post',
    data: data
  })
}

// 修改球队动态
export function updateFeeds(data) {
  return request({
    url: '/team/feeds',
    method: 'put',
    data: data
  })
}

// 删除球队动态
export function delFeeds(id) {
  return request({
    url: '/team/feeds/' + id,
    method: 'delete'
  })
}
